import request from '@/utils/request'

// 封装一个获取用户自己频道的接口
export const ownChannelAPI = () => request.get('/v1_0/user/channels')

// 封装一个获取所有频道的接口
export const allChannelAPI = () => request.get('/v1_0/channels')

// 封装一个保存所有频道的接口
export const saveChannelAPI = (data) => request.put('/v1_0/user/channels', data)
